package com.hodge.web.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;

/**
 * 登录模型
 *
 * @author haojun
 * @since 2020/3/21 14:28
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class LoginModel {
    /**
     * 账号
     */
    @NotEmpty(message = "账号不能为空")
    private String username;
    /**
     * 密码
     */
    @NotEmpty(message = "密码不能为空")
    private String password;
}
